<?=$this->load->view('include_header',null)?>
<style type="text/css">
select { width:100px;}
</style>
	<title></title><div id="top-panel">
		<div id="panel">
			<ul>
				<li class="current"><a href="<?=site_url('archive/idcard/'.$id)?>" class="report"><?=(empty($id))?"录入新":"编辑"?>客户基本信息</a></li>
				<?php if(!empty($info->id)):?><li><a id="printInfo" class="folder_table">打印本页信息</a></li><?php endif;?>
			</ul>
		</div>
	</div>
	<div id="wrapper">
		<div id="content">
			<div id="box">
<!-- table begin -->
<form method="post" id="form"  enctype="multipart/form-data" action="<?=site_url('schengen/nz_tourism_update/'.$cateid)?>">

	<h3>新西兰旅游访问签证[INZ 1188]</h3>
    <table width="100%">
    <thead>
        <tr>
          <td colspan="3" align="right"><img src="<?= (@$info->avatar)?@$info->avatar:'images/avatar.gif'?>" width="150" height="150" /></td>
		  <td colspan="2" align="right">
		  上传照片<br />
		  <input type="file" name="userphoto"/><br />
		  (.gif|.jpg|.png文件,最大1M)<br />
		  <?php if (@$info->attachment):?><a href="<?= @$info->attachment?>" target="_blank">点击下载附件</a><?php endif; ?>
		  &nbsp;&nbsp;&nbsp;&nbsp;上传附件<br />
		  <input type="file" name="userfile"/><br />
		  (.pdf|.zip|.rar|.doc,最大2M)		  </td>
        </tr>
    </thead>
    <tfoot>
        <tr>
            <td colspan="5" align="right">			
			<input type="hidden" name="id" value="<?=$id?>" />
			<input id="button1" type="submit" value="提交信息" />
			<input id="button2" type="reset" value="重置" />			</td>
        </tr>
    </tfoot>

    <tbody>
		<tr class="even">
		<td colspan="5"><strong>Section A 主申请人个人信息 Principal applicant’s personal details</strong></td>
		</tr>
		<tr class="odd">
            <td colspan="5">A1 护照上的姓名 Name as shown in passport</td>
        	</tr>
        <tr class="even">
            <td>姓 Family</td>
        	<td><input type="text" name="surname" value="<?= @$info->surname?>"/></td>
        	<td>&nbsp;</td>
        	<td>名 Given</td>
			<td><input type="text" name="firstname" value="<?= @$info->firstname?>"/></td>
        </tr>
		<tr class="odd">
            <td colspan="2">A2 曾用名 (如有) Other names you are known by or have ever been known by (if any)</td>
        	<td>&nbsp;</td>
        	<td><input type="text" name="alias1" value="<?= @$info->alias1?>"/></td>
			<td><input type="text" name="alias2" value="<?= @$info->alias2?>"/></td>
        </tr>
        <tr class="even">
            <td>A3 性别 Gender</td>
        	<td><input type="radio" name="sex" value="1" <?= (@$info->sex==1)?'checked':''?> />男Male 
        	<input type="radio" name="sex" value="2" <?= (@$info->sex==2)?'checked':''?> />女Female</td>
        	<td>&nbsp;</td>
        	<td>A4 出生日期 Date of birth</td>
			<td><input type="text" name="birth" id="birth" value="<?= @$info->birth?>"/></td>
        </tr>
		<tr class="odd">
            <td colspan="5">A5 护照内容 Passport details</td>
        	</tr>
        <tr class="even">
            <td>号码 Number</td>
        	<td><input type="text" name="passport_no" value="<?= @$info->passport_no?>"/></td>
        	<td>&nbsp;</td>
        	<td>有效期 Expiry date</td>
			<td><input type="text" name="passport_expiry" id="passport_expiry" value="<?= @$info->passport_expiry?>"/></td>
        </tr>
		<tr class="odd">
            <td>国家 Country</td>
        	<td colspan="4"><input type="radio" name="passport_country" value="0" <?= (@$info->passport_country==0)?'checked':''?> />中国 China 
        	<input type="radio" name="passport_country" value="1" <?= (@$info->passport_country==1)?'checked':''?> />其他 Other (please specify)
        	<input type="text" name="passport_country_other" value="<?= @$info->passport_country_other?>"/></td>
        	</tr>
        <tr class="even">
            <td>A6 婚姻状况 Partnership status</td>
        	<td colspan="4">
			<input type="radio" name="marital_status" value="1" <?= (@$info->marital_status==1)?'checked':''?> />已婚/同居关系/订婚 Married/Partner/Engaged
        	<input type="radio" name="marital_status" value="2" <?= (@$info->marital_status==2)?'checked':''?> />未婚 Never married
			<input type="radio" name="marital_status" value="3" <?= (@$info->marital_status==3)?'checked':''?> />分居/离婚 Separated/Divorced
			<input type="radio" name="marital_status" value="4" <?= (@$info->marital_status==4)?'checked':''?> />鳏寡 Widowed			</td>
        	</tr>
		<tr class="odd">
            <td colspan="5">&nbsp;</td>
        	</tr>
        <tr class="even">
            <td colspan="5"><strong>Section B 联系方式 Contact details</strong></td>
        	</tr>
		<tr class="odd">
            <td colspan="5">B1 您在中国的家庭住址和电话号码 Your residential address and telephone number in China.</td>
        	</tr>
        <tr class="even">
            <td>住址 Address</td>
        	<td colspan="4"><input type="text" name="address" value="<?= @$info->address?>" style="width:300px"/></td>
        	</tr>
		<tr class="odd">
            <td>电话(白天) Telephone (daytime)</td>
        	<td><input type="text" name="tel1" value="<?= @$info->tel1?>"/></td>
        	<td>&nbsp;</td>
        	<td>电话(夜晚) Telephone (evening)</td>
			<td><input type="text" name="tel2" value="<?= @$info->tel2?>"/></td>
        </tr>
        <tr class="even">
            <td>电子邮件 Email</td>
        	<td><input type="text" name="email" value="<?= @$info->email?>" id="email"/></td>
        	<td>&nbsp;</td>
        	<td>&nbsp;</td>
			<td>&nbsp;</td>
        </tr>
		<tr class="odd">
            <td colspan="5">B2 此申请的联系人姓名及通信地址 Name and address for communication about this application.</td>
        	</tr>
        <tr class="even">
            <td colspan="5">
			<input type="radio" name="is_diff_postal" value="0" <?= (@$info->is_diff_postal==0)?'checked':''?> />地址同 B1 Same as address at B1 , 或 or 
        	<input type="radio" name="is_diff_postal" value="1" <?= (@$info->is_diff_postal==1)?'checked':''?> />如下 as below</td>
        	</tr>
		<tr class="odd">
            <td>姓 Family</td>
        	<td><input type="text" name="postal_family" value="<?= @$info->postal_family?>"/></td>
        	<td>&nbsp;</td>
        	<td>名 Given</td>
			<td><input type="text" name="postal_given" value="<?= @$info->postal_given?>"/></td>
        </tr>
        <tr class="even">
            <td>用英文填写公司名称(如适用)及地址 Company name (if applicable) and address</td>
        	<td colspan="4"><input type="text" name="postal_en_name" value="<?= @$info->postal_en_name?>" style="width:300px"/></td>
        	</tr>
		<tr class="odd">
            <td>用中文填写公司名称(如适用)及地址 Company name (if applicable) and address in Chinese characters</td>
        	<td colspan="4"><input type="text" name="postal_cn_name" value="<?= @$info->postal_cn_name?>" style="width:300px"/></td>
        	</tr>
        <tr class="even">
            <td>电话(白天) Telephone (daytime)</td>
        	<td><input type="text" name="postal_tel1" value="<?= @$info->postal_tel1?>"/></td>
        	<td>&nbsp;</td>
        	<td>电话(夜晚) Telephone (evening)</td>
			<td><input type="text" name="postal_tel2" value="<?= @$info->postal_tel2?>"/></td>
        </tr>
		<tr class="odd">
            <td>传真 Fax</td>
        	<td><input type="text" name="postal_fax" value="<?= @$info->postal_fax?>"/></td>
        	<td>&nbsp;</td>
        	<td>电子邮件 Email</td>
			<td><input type="text" name="postal_email" value="<?= @$info->postal_email?>" id="postal_email"/></td>
        </tr>
        <tr class="even">
            <td colspan="5">B3 如果您在 B2 中提供的是代理人的信息，您是否已向其授权代表您行事? Do you authorise the person stated at B2 to act on your behalf?</td>
        	</tr>
		<tr class="odd">
            <td colspan="5">
			<input type="radio" name="is_authorise" value="1" <?= (@$info->is_authorise==1)?'checked':''?> />是 Yes
        	<input type="radio" name="is_authorise" value="0" <?= (@$info->is_authorise==0)?'checked':''?> />否 No</td>
        	</tr>
        <tr class="even">
            <td colspan="5">B4 您是否得到指定联系人提供的移民建议? Have you received immigration advice on this application?</td>
        	</tr>
		<tr class="odd">
            <td colspan="5">
			<input type="radio" name="is_advice" value="1" <?= (@$info->is_advice==1)?'checked':''?> />是 Yes 请确保您的移民顾问填写了 I 项: 移民顾问详细信息。Please make sure that your immigration adviser completes Section I: Immigration adviser’s details
        	<input type="radio" name="is_advice" value="0" <?= (@$info->is_advice==0)?'checked':''?> />否 No</td>
        	</tr>
        <tr class="even">
            <td colspan="5">B5 您在新西兰的朋友、亲属或联系人的姓名及地址(如果有)Names and addresses of any friends, relatives, or contacts you have in New Zealand (if applicable)</td>
        	</tr>
		<tr class="odd">
            <td>姓名 Name</td>
        	<td><input type="text" name="friend1_name" value="<?= @$info->friend1_name?>"/></td>
        	<td>&nbsp;</td>
        	<td>&nbsp;</td>
			<td>&nbsp;</td>
        </tr>
        <tr class="even">
            <td>地址 Address</td>
        	<td colspan="4"><input type="text" name="friend1_address" value="<?= @$info->friend1_address?>" style="width:300px"/></td>
        	</tr>
		<tr class="odd">
            <td>关系 Relationship </td>
        	<td colspan="4">
			<input type="radio" name="friend1_relate" value="1" <?= (@$info->friend1_relate==1)?'checked':''?> />朋友 Friend
        	<input type="radio" name="friend1_relate" value="2" <?= (@$info->friend1_relate==2)?'checked':''?> />家庭成员 Family member
			<input type="radio" name="friend1_relate" value="3" <?= (@$info->friend1_relate==3)?'checked':''?> />其他 Other (please specify)
			<input type="text" name="friend1_relate_other" value="<?= @$info->friend1_relate_other?>"/></td>
        	</tr>
        <tr class="even">
            <td>姓名 Name</td>
        	<td><input type="text" name="friend2_name" value="<?= @$info->friend2_name?>"/></td>
        	<td>&nbsp;</td>
        	<td>&nbsp;</td>
			<td>&nbsp;</td>
        </tr>
		<tr class="odd">
            <td>地址 Address</td>
        	<td colspan="4"><input type="text" name="friend2_address" value="<?= @$info->friend2_address?>" style="width:300px"/></td>
        	</tr>
        <tr class="even">
            <td>关系 Relationship</td>
        	<td colspan="4">
			<input type="radio" name="friend2_relate" value="1" <?= (@$info->friend2_relate==1)?'checked':''?> />朋友 Friend
			<input type="radio" name="friend2_relate" value="2" <?= (@$info->friend2_relate==2)?'checked':''?> />家庭成员 Family member
			<input type="radio" name="friend2_relate" value="3" <?= (@$info->friend2_relate==3)?'checked':''?> />其他 Other (please specify)
			<input type="text" name="friend2_relate_other" value="<?= @$info->friend2_relate_other?>"/></td>
        	</tr>
		<tr class="odd">
            <td colspan="5">&nbsp;</td>
        	</tr>
        <tr class="even">
            <td colspan="5"><strong>Section C 签证类别 Visa type</strong></td>
        	</tr>
		<tr class="odd">
            <td colspan="2">C1 您将入境新西兰的日期 Date you will arrive in New Zealand</td>
        	<td colspan="3"><input type="text" name="visit_from" id="visit_from" value="<?= @$info->visit_from?>"/></td>
        	</tr>
        <tr class="even">
            <td colspan="2"> 您将离开新西兰的日期 Date you will depart New Zealand</td>
        	<td colspan="3"><input type="text" name="visit_to" id="visit_to" value="<?= @$info->visit_to?>"/></td>
        	</tr>
		<tr class="odd">
            <td colspan="5">C2 您访问新西兰的目的是什么？ What is the purpose of your visit to New Zealand?</td>
        	</tr>
        <tr class="even">
            <td colspan="5"> 
            <input type="radio" name="visit_purpose" value="1" <?= (@$info->visit_purpose==1)?'checked':''?> />旅游 Tourism
			<input type="radio" name="visit_purpose" value="2" <?= (@$info->visit_purpose==2)?'checked':''?> />拜访家人/朋友 Visiting family/friends
			<input type="radio" name="visit_purpose" value="3" <?= (@$info->visit_purpose==3)?'checked':''?> />其他 Other (please specify)
			<input type="text" name="visit_purpose_other" value="<?= @$info->visit_purpose_other?>"/></td>
        	</tr>
		<tr class="odd">
            <td colspan="5">&nbsp;</td>
        	</tr>
        <tr class="even">
            <td colspan="5"><strong>Section D 配偶的个人信息 Partner’s personal details</strong></td>
        	</tr>
		<tr class="odd">
            <td colspan="5">所有在 A6 项选择“已婚”、“同居关系”或“订婚”的主申请人,
            	无论其配偶是否一同申请,必须完整填写此项内容。若此申请包括您
            	的配偶，请提供配偶的护照照片两张。<br />
            	All principal applicants who have ticked ‘Married’, ‘Partner’ or ‘Engaged’ at A6 must complete this
            	section with their partner’s personal details, whether or not the partner is included in this application
            	Attach two photographs of your partner only if they are included in this application.</td>
        	</tr>
        <tr class="even">
            <td colspan="5">D1 配偶护照上的姓名 Partner’s name as shown in passport</td>
        	</tr>
		<tr class="odd">
            <td>姓 Family</td>
        	<td><input type="text" name="spouse_family" value="<?= @$info->spouse_family?>"/></td>
        	<td>&nbsp;</td>
        	<td>名 Given</td>
			<td><input type="text" name="spouse_given" value="<?= @$info->spouse_given?>"/></td>
        </tr>
        <tr class="even">
            <td colspan="2">D2 配偶的曾用名 (如有) Other names your partner is known by or has ever been known by (if any)</td>
        	<td>&nbsp;</td>
        	<td><input type="text" name="spouse_alias1" value="<?= @$info->spouse_alias1?>"/></td>
			<td><input type="text" name="spouse_alias2" value="<?= @$info->spouse_alias2?>"/></td>
        </tr>
		<tr class="odd">
            <td colspan="2">D3 配偶的性别 Partner’s gende
			<input type="radio" name="spouse_sex" value="1" <?= (@$info->spouse_sex==1)?'checked':''?> />男Male 
        	<input type="radio" name="spouse_sex" value="2" <?= (@$info->spouse_sex==2)?'checked':''?> />女Female			</td>
        	<td>&nbsp;</td>
        	<td>&nbsp;</td>
			<td>&nbsp;</td>
        </tr>
        <tr class="even">
            <td>D4 配偶的出生日期 Partner’s date of birth</td>
        	<td><input type="text" name="spouse_birth" id="spouse_birth" value="<?= @$info->spouse_birth?>"/></td>
        	<td>&nbsp;</td>
        	<td>&nbsp;</td>
			<td>&nbsp;</td>
        </tr>
		<tr class="odd">
            <td colspan="5">D5 配偶的护照信息 Partner’s passport details</td>
        	</tr>
        <tr class="even">
            <td>号码 Number</td>
        	<td><input type="text" name="spouse_passport_no" value="<?= @$info->spouse_passport_no?>"/></td>
        	<td>&nbsp;</td>
        	<td>有效期 Expiry date</td>
			<td><input type="text" name="spouse_passport_expiry" id="spouse_passport_expiry" value="<?= @$info->spouse_passport_expiry?>"/></td>
        </tr>
		<tr class="odd">
            <td colspan="5">
			<input type="radio" name="spouse_passport_country" value="0" <?= (@$info->spouse_passport_country==0)?'checked':''?> />中国 China 
        	<input type="radio" name="spouse_passport_country" value="1" <?= (@$info->spouse_passport_country==1)?'checked':''?> />其他 Other (please specify)
        	<input type="text" name="spouse_passport_country_other" value="<?= @$info->spouse_passport_country_other?>"/></td>
        	</tr>
        <tr class="even">
            <td colspan="4">D6 您的配偶是否被包括在此申请中？ Is your partner included in this application?</td>
        	<td><input type="radio" name="is_spouse_included" value="1" <?= (@$info->is_spouse_included==1)?'checked':''?> />是 Yes 
        	<input type="radio" name="is_spouse_included" value="0" <?= (@$info->is_spouse_included==0)?'checked':''?> />否 No</td>
        </tr>
		<tr class="odd">
            <td colspan="5">&nbsp;</td>
        	</tr>
        <tr class="even">
            <td colspan="5"><strong>Section E 未成年子女的个人信息 Dependent children’s personal details</strong></td>
        	</tr>
		<tr class="odd">
            <td colspan="5">主申请人必须填写包括在本次申请中的所有未成年子女的个人信息<br />
            	You must complete this section with the details of each dependent child included in this application.</td>
        	</tr>
        <tr class="even">
            <td colspan="5">E1 子女护照上的姓名 Child’s name as shown in passport</td>
        	</tr>
		<tr class="odd">
            <td>姓 Family</td>
        	<td><input type="text" name="child1_family" value="<?= @$info->child1_family?>"/></td>
        	<td>&nbsp;</td>
        	<td>名 Given</td>
			<td><input type="text" name="child1_given" value="<?= @$info->child1_given?>"/></td>
        </tr>
        <tr class="even">
            <td>E2 子女的性别 Child’s gender</td>
        	<td><input type="radio" name="child1_sex" value="1" <?= (@$info->child1_sex==1)?'checked':''?> />男Male 
        	<input type="radio" name="child1_sex" value="2" <?= (@$info->child1_sex==2)?'checked':''?> />女Female</td>
        	<td>&nbsp;</td>
        	<td>E3 子女的出生日期 Child’s date of birth</td>
			<td><input type="text" name="child1_birth" id="child1_birth" value="<?= @$info->child1_birth?>"/></td>
        </tr>
		<tr class="odd">
            <td colspan="5">E4 子女的护照内容 Child’s passport details</td>
        	</tr>
        <tr class="even">
            <td>号码 Number</td>
        	<td><input type="text" name="child1_passport_no" value="<?= @$info->child1_passport_no?>"/></td>
        	<td>&nbsp;</td>
        	<td>有效期 Expiry date</td>
			<td><input type="text" name="child1_expiry" id="child1_expiry" value="<?= @$info->child1_expiry?>"/></td>
        </tr>
		<tr class="odd">
            <td colspan="5">
			<input type="radio" name="child1_country" value="0" <?= (@$info->child1_country==0)?'checked':''?> />中国 China
			<input type="radio" name="child1_country" value="1" <?= (@$info->child1_country==1)?'checked':''?> />其他 Other (please specify)
			<input type="text" name="child1_country_other" value="<?= @$info->child1_country_other?>"/></td>
        	</tr>
        <tr class="even">
            <td colspan="5">E5 子女护照上的姓名 Child’s name as shown in passport</td>
        	</tr>
		<tr class="odd">
            <td>姓 Family</td>
        	<td><input type="text" name="child2_family" value="<?= @$info->child2_family?>"/></td>
        	<td>&nbsp;</td>
        	<td>名 Given</td>
			<td><input type="text" name="child2_given" value="<?= @$info->child2_given?>"/></td>
        </tr>
        <tr class="even">
            <td>E6 子女的性别 Child’s gender</td>
        	<td><input type="radio" name="child2_sex" value="1" <?= (@$info->child2_sex==1)?'checked':''?> />男Male 
        	<input type="radio" name="child2_sex" value="2" <?= (@$info->child2_sex==2)?'checked':''?> />女Female</td>
        	<td>&nbsp;</td>
        	<td>E7 子女的出生日期 Child’s date of birth</td>
			<td><input type="text" name="child2_birth" id="child2_birth" value="<?= @$info->child2_birth?>"/></td>
        </tr>
		<tr class="odd">
            <td colspan="5">E8 子女的护照内容 Child’s passport details</td>
        	</tr>
        <tr class="even">
            <td>号码 Number</td>
        	<td><input type="text" name="child2_passport_no" value="<?= @$info->child2_passport_no?>"/></td>
        	<td>&nbsp;</td>
        	<td>有效期 Expiry date</td>
			<td><input type="text" name="child2_expiry" id="child2_expiry" value="<?= @$info->child2_expiry?>"/></td>
        </tr>
		<tr class="odd">
            <td colspan="5">
			<input type="radio" name="child2_country" value="0" <?= (@$info->child2_country==0)?'checked':''?> />中国 China
			<input type="radio" name="child2_country" value="1" <?= (@$info->child2_country==1)?'checked':''?> />其他 Other (please specify)
			<input type="text" name="child2_country_other" value="<?= @$info->child2_country_other?>"/></td>
        	</tr>
        <tr class="even">
            <td colspan="5">&nbsp;</td>
        	</tr>
		<tr class="odd">
            <td colspan="5"><strong>Section F 健康状况 Health</strong></td>
        	</tr>
        <tr class="even">
            <td colspan="5">F1 您本人或本次申请所包括的其他任何人是否患有肺结核？Do you or any person included in this application have pulmonary tuberculosis (TB)?</td>
        	</tr>
		<tr class="odd">
            <td><input type="radio" name="is_tuberculosis" value="1" <?= (@$info->is_tuberculosis==1)?'checked':''?> />是 Yes 
        	<input type="radio" name="is_tuberculosis" value="0" <?= (@$info->is_tuberculosis==0)?'checked':''?> />否 No</td>
        	<td>&nbsp;</td>
        	<td>&nbsp;</td>
        	<td>&nbsp;</td>
			<td>&nbsp;</td>
        </tr>
        <tr class="even">
            <td colspan="5">F2 您本人或本次申请所包括的其他任何人在新西兰停留期间是否需要或可能需要接受以下治疗：<br />
            	Do you or any person included in this application have any medical condition that requires, or may require, one of the following during your stay in New Zealand?</td>
        	</tr>
		<tr class="odd">
            <td colspan="2">• 肾透析 Renal dialysis</td>
        	<td colspan="3"><input type="radio" name="is_renal_dialysis" value="1" <?= (@$info->is_renal_dialysis==1)?'checked':''?> />是 Yes 
        	<input type="radio" name="is_renal_dialysis" value="0" <?= (@$info->is_renal_dialysis==0)?'checked':''?> />否 No</td>
        	</tr>
        <tr class="even">
            <td colspan="2">• 住院治疗 Hospital care</td>
        	<td colspan="3"><input type="radio" name="is_hospital_care" value="1" <?= (@$info->is_hospital_care==1)?'checked':''?> />是 Yes 
        	<input type="radio" name="is_hospital_care" value="0" <?= (@$info->is_hospital_care==0)?'checked':''?> />否 No</td>
        	</tr>
		<tr class="odd">
            <td colspan="2">• 家居看护 Residential care</td>
        	<td colspan="3"><input type="radio" name="is_residential_care" value="1" <?= (@$info->is_residential_care==1)?'checked':''?> />是 Yes 
        	<input type="radio" name="is_residential_care" value="0" <?= (@$info->is_residential_care==0)?'checked':''?> />否 No</td>
        	</tr>
        <tr class="even">
            <td colspan="5">F3 您本人或本次申请所包括的其他任何人是否已怀孕？ Are you or any person included in this application pregnant?</td>
        	</tr>
		<tr class="odd">
            <td><input type="radio" name="is_pregnant" value="1" <?= (@$info->is_pregnant==1)?'checked':''?> />是 Yes 
        	<input type="radio" name="is_pregnant" value="0" <?= (@$info->is_pregnant==0)?'checked':''?> />否 No</td>
        	<td>&nbsp;</td>
        	<td>&nbsp;</td>
        	<td>&nbsp;</td>
			<td>&nbsp;</td>
        </tr>
        <tr class="even">
            <td colspan="5">F4 如果您对上述 F1 - F3 项任何问题回答为“是”， 请在下面作出详细说明。<br />
            	If you have answered Yes to any of the questions in F1 to F3 , please provide details.</td>
        	</tr>
		<tr class="odd">
            <td colspan="5"><textarea name="health_detail"><?= @$info->health_detail?></textarea></td>
        	</tr>
        <tr class="even">
            <td colspan="5">&nbsp;</td>
        	</tr>
		<tr class="odd">
            <td colspan="5"><strong>Section G 品行 Character</strong></td>
        	</tr>
        <tr class="even">
            <td colspan="5">G1 您本人或本次申请所包括的任何其他人是否曾经因违反任何国家的法律而被：<br />
            	Have you or any other person included in this application been:</td>
        	</tr>
		<tr class="odd">
            <td colspan="2">• 定罪 convicted</td>
        	<td colspan="3">
			<input type="radio" name="is_convicted" value="1" <?= (@$info->is_convicted==1)?'checked':''?> />是 Yes 
        	<input type="radio" name="is_convicted" value="0" <?= (@$info->is_convicted==0)?'checked':''?> />否 No</td>
        	</tr>
        <tr class="even">
            <td colspan="2">• 指控 charged</td>
        	<td colspan="3">
			<input type="radio" name="is_charged" value="1" <?= (@$info->is_charged==1)?'checked':''?> />是 Yes 
        	<input type="radio" name="is_charged" value="0" <?= (@$info->is_charged==0)?'checked':''?> />否 No</td>
        	</tr>
		<tr class="odd">
            <td colspan="2">• 调查 under investigation</td>
        	<td colspan="3">
			<input type="radio" name="is_investigation" value="1" <?= (@$info->is_investigation==1)?'checked':''?> />是 Yes 
        	<input type="radio" name="is_investigation" value="0" <?= (@$info->is_investigation==0)?'checked':''?> />否 No</td>
        	</tr>
        <tr class="even">
            <td colspan="5">G2 您本人或本次申请所包括的任何其他人是否被任何国家：<br />
            	Have you or any other person included in this application been:</td>
        	</tr>
		<tr class="odd">
            <td colspan="2">• 禁止入境 excluded (refused entry) from</td>
        	<td colspan="3">
			<input type="radio" name="is_excluded" value="1" <?= (@$info->is_excluded==1)?'checked':''?> />是 Yes 
        	<input type="radio" name="is_excluded" value="0" <?= (@$info->is_excluded==0)?'checked':''?> />否 No</td>
        	</tr>
        <tr class="even">
            <td colspan="2">• 拒签 refused a visa by</td>
        	<td colspan="3">
			<input type="radio" name="is_refused" value="1" <?= (@$info->is_refused==1)?'checked':''?> />是 Yes 
        	<input type="radio" name="is_refused" value="0" <?= (@$info->is_refused==0)?'checked':''?> />否 No</td>
        	</tr>
		<tr class="odd">
            <td colspan="2">• 递解/驱逐出境 removed or deported from any country?</td>
        	<td colspan="3">
			<input type="radio" name="is_deported" value="1" <?= (@$info->is_deported==1)?'checked':''?> />是 Yes 
        	<input type="radio" name="is_deported" value="0" <?= (@$info->is_deported==0)?'checked':''?> />否 No</td>
        	</tr>
        <tr class="even">
            <td colspan="5">如果您对 G1 和 G2 中任何一项问题回答为“是”，请在下面作出详细说明。如有必要，请写在附加页上。<br />
            	If you have answered Yes to any of the questions in G1 and G2 , please provide details below. Continue on a separate piece of paper if necessary.</td>
        	</tr>
		<tr class="odd">
            <td colspan="5"><textarea name="character_detail"><?= @$info->character_detail?></textarea></td>
        	</tr>
        <tr class="even">
            <td colspan="5">&nbsp;</td>
        	</tr>
		<tr class="odd">
            <td colspan="5"><strong>Section H 申请人声明 Declaration by applicant</strong></td>
        	</tr>
        <tr class="even">
            <td colspan="2">主申请人签名 Signature of principal applicant</td>
        	<td>Date</td>
        	<td><input type="text" name="sign_date1" id="sign_date1" value="<?= @$info->sign_date1?>"/></td>
			<td>&nbsp;</td>
        </tr>
		<tr class="odd">
            <td colspan="2">配偶签名 Signature of partner</td>
        	<td>Date</td>
        	<td><input type="text" name="sign_date2" id="sign_date2" value="<?= @$info->sign_date2?>"/></td>
			<td>&nbsp;</td>
        </tr>
        <tr class="even">
            <td colspan="2">子女签名 Signature of dependent child</td>
        	<td>Date</td>
        	<td><input type="text" name="sign_date3" id="sign_date3" value="<?= @$info->sign_date3?>"/></td>
			<td>&nbsp;</td>
        </tr>
		<tr class="odd">
            <td colspan="2">子女签名 Signature of dependent child</td>
        	<td>Date</td>
        	<td><input type="text" name="sign_date4" id="sign_date4" value="<?= @$info->sign_date4?>"/></td>
			<td>&nbsp;</td>
        </tr>
        <tr class="even">
            <td colspan="5">&nbsp;</td>
        	</tr>
		<tr class="odd">
            <td colspan="5"><strong>Section I 移民顾问信息 Immigration adviser’s details</strong></td>
        	</tr>
        <tr class="even">
            <td colspan="5">I1 请选择适用的一项 Tick the one option that applies to you.</td>
        	</tr>
		<tr class="odd">
            <td colspan="5">
			<input type="radio" name="i1" value="1" <?= (@$info->i1==1)?'checked':''?> />
				依照《2007移民顾问执照法》,我是一名注册移民顾问。转到 I2<br />
            	I am a licensed immigration adviser under the New Zealand Immigration Advisers Licensing Act 2007. Go to I2<br /> 
        	<input type="radio" name="i1" value="2" <?= (@$info->i1==2)?'checked':''?> />
            	依照《2007移民顾问执照法》,我可豁免注册。转到 I3<br />
            	I am exempt from licensing under the New Zealand Immigration Advisers Licensing Act 2007. Go to I3</td>
        	</tr>
        <tr class="even">
            <td colspan="5">I2 注册移民顾问。请提供您执照的详细信息 Licensed advisers. Provide your licence details.</td>
        	</tr>
		<tr class="odd">
            <td>执照类别 Licence type</td>
        	<td colspan="4">
			<input type="radio" name="i2" value="1" <?= (@$info->i2==1)?'checked':''?> />正式 full
			<input type="radio" name="i2" value="2" <?= (@$info->i2==2)?'checked':''?> />临时 provisional 
			<input type="radio" name="i2" value="3" <?= (@$info->i2==3)?'checked':''?> />限制性 limited
			 请列出注册登记的限制条款。<input type="text" name="i2_detail" value="<?= @$info->i2_detail?>" style="width:300px"/></td>
        	</tr>
        <tr class="even">
            <td>执照号码：Licence number</td>
        	<td><input type="text" name="i2_licence" value="<?= @$info->i2_licence?>"/></td>
        	<td>&nbsp;</td>
        	<td>&nbsp;</td>
			<td>&nbsp;</td>
        </tr>
		<tr class="odd">
            <td colspan="5">I3 豁免注册。请选择以下对应的某一项说明您豁免注册的原因。Exempt from licensing. Tick one box below to show why you are exempt from licensing.</td>
        	</tr>
        <tr class="even">
            <td colspan="5">
				<input type="radio" name="i3" value="1" <?= (@$info->i3==1)?'checked':''?> />
				我只在家庭内或在非正式情况下提供咨询，我没有提供系统性的或有偿咨询。<br />
            	I provided immigration advice in an informal or family context only, and I did not provide the advice systematically or for a fee.<br />
				<input type="radio" name="i3" value="2" <?= (@$info->i3==2)?'checked':''?> />
            	我是一名新西兰国会议员或他们的工作人员，我所提供的移民建议是我的雇佣合同的一部分。<br />
            	I am a New Zealand Member of Parliament or member of their staff and I provided immigration advice as part of my employment agreement.<br />
				<input type="radio" name="i3" value="3" <?= (@$info->i3==3)?'checked':''?> />
            	我是（驻外）外交官或使领馆雇员。 I am a foreign diplomat or consular staff.<br />
				<input type="radio" name="i3" value="4" <?= (@$info->i3==4)?'checked':''?> />
            	我是新西兰政府雇员，我所提供的移民建议在我的雇佣合同规定的范围以内。<br />
            	I am an employee of the New Zealand public service and I provided immigration advice within the scope of my employment agreement.<br />
				<input type="radio" name="i3" value="5" <?= (@$info->i3==5)?'checked':''?> />
            	我是一名律师，并持有有效的新西兰高等法院颁发的律师执业证书。<br />
            	I am a lawyer and I hold a current practising certificate as a barrister or as a barrister and solicitor of the High Court of New Zealand.<br />
				<input type="radio" name="i3" value="6" <?= (@$info->i3==6)?'checked':''?> />
            	我受雇于或作为志愿者为某新西兰社区法律中心工作，该法律中心至少雇有一名律师或拥有一名律师作为有监管权
            	的雇员或志愿者。<br />
            	I am employed by, or I am working as a volunteer for, a New Zealand community law centre where at least one lawyer is on the employing body of the community law centre or is
            	employed by or working as a volunteer for the community law centre in a supervisory capacity.<br />
				<input type="radio" name="i3" value="7" <?= (@$info->i3==7)?'checked':''?> />
            	我是新西兰公民咨询局的雇员或志愿者。 I am employed by, or I am working as a volunteer for, a New Zealand citizens advice bureau.</td>
        	</tr>
		<tr class="odd">
            <td colspan="5">&nbsp;</td>
        	</tr>
        <tr class="even">
            <td colspan="5"><strong>Section J 申请人协助人的声明 Declaration by person assisting the applicant</strong></td>
        	</tr>
		<tr class="odd">
            <td colspan="5">申请人协助人的姓名和地址 Name and address of person assisting applicant<br />
            	同 B2 项所填地址 Same as address given at B2 , 或 or 如下所示 as below.</td>
        	</tr>
        <tr class="even">
            <td>姓 Family/last name</td>
        	<td><input type="text" name="assist_family" value="<?= @$info->assist_family?>"/></td>
        	<td>&nbsp;</td>
        	<td>名 Given/first name(s)</td>
			<td><input type="text" name="assist_given" value="<?= @$info->assist_given?>"/></td>
        </tr>
		<tr class="odd">
            <td>公司名称（如适用） Company name (if applicable)</td>
        	<td><input type="text" name="assist_name" value="<?= @$info->assist_name?>"/></td>
        	<td>&nbsp;</td>
        	<td>地址  address</td>
			<td><input type="text" name="assist_address" value="<?= @$info->assist_address?>"/></td>
        </tr>
        <tr class="even">
            <td>电话(白天) Telephone (daytime)</td>
        	<td><input type="text" name="assist_tel1" value="<?= @$info->assist_tel1?>"/></td>
        	<td>&nbsp;</td>
        	<td>电话(夜晚) Telephone (evening)</td>
			<td><input type="text" name="assist_tel2" value="<?= @$info->assist_tel2?>"/></td>
        </tr>
		<tr class="odd">
            <td>传真 Fax</td>
        	<td><input type="text" name="assist_fax" value="<?= @$info->assist_fax?>"/></td>
        	<td>&nbsp;</td>
        	<td>电子邮件 Email</td>
			<td><input type="text" name="assist_mail" value="<?= @$info->assist_mail?>" id="assist_mail"/></td>
        </tr>
        <tr class="even">
            <td colspan="5">
			<input type="radio" name="assist_type" value="1" <?= (@$info->assist_type==1)?'checked':''?> />
				我为申请人提供的是翻译协助 I have assisted the applicant as an interpreter/translator<br />
			<input type="radio" name="assist_type" value="2" <?= (@$info->assist_type==2)?'checked':''?> />
            	我协助申请人填写此申请表 I have assisted the applicant with recording information on the form<br />
			<input type="radio" name="assist_type" value="3" <?= (@$info->assist_type==3)?'checked':''?> />
            	我为申请人提供了其他协助。 请具体说明 I have assisted the applicant in another way. Specify<input type="text" name="assist_type_detail" value="<?= @$info->assist_type_detail?>"/><br />
			<input type="radio" name="assist_type" value="4" <?= (@$info->assist_type==4)?'checked':''?> />
            	我为申请人提供了（如《2007移民顾问执照法》所定义的）移民建议，而且，我在 I 项中填写的移民顾问详细信息是准确的。<br />
            	I have provided immigration advice (as defined in the Immigration Advisers Licensing Act 2007) and my details in Section I: Immigration adviser’s details are correct.</td>
        	</tr>
		<tr class="odd">
            <td>日期 Date</td>
        	<td><input type="text" name="assist_sign_date" id="assist_sign_date" value="<?= @$info->assist_sign_date?>"/></td>
        	<td>&nbsp;</td>
        	<td>&nbsp;</td>
			<td>&nbsp;</td>
        </tr>
        <tr class="even">
            <td colspan="5">&nbsp;</td>
        	</tr>
		<tr class="odd">
            <td colspan="5">取件方式(申请审理完毕后) Returning your documents</td>
        	</tr>
        <tr class="even">
            <td colspan="5">
			<input type="radio" name="return_type" value="1" <?= (@$info->return_type==1)?'checked':''?> />
			我希望亲自前往贵办公室领取 I wish to collect my documents when ready.<br />
            <input type="radio" name="return_type" value="2" <?= (@$info->return_type==2)?'checked':''?> />
			请用安全的邮寄方式将所有的文件邮寄到 B2 处填写的地址 Please return all documents to me by secure post at the address given at B2 .</td>
        	</tr>
		<tr class="odd">
            <td colspan="5">&nbsp;</td>
        	</tr>
        <tr class="even">
            <td colspan="5"><strong>Section K 申请费的支付 Paying your application fee</strong></td>
        	</tr>
		<tr class="odd">
            <td>申请费用 Your application fee</td>
        	<td>&nbsp;</td>
        	<td>&nbsp;</td>
        	<td>&nbsp;</td>
			<td>&nbsp;</td>
        </tr>
        <tr class="even">
            <td>金额 Amount you are paying:</td>
        	<td colspan="4">人民币 RMB
        		<input type="text" name="pay_amount" value="<?= @$info->pay_amount?>"/></td>
        	</tr>
		<tr class="odd">
            <td>申请号 （移民局填写） Application number (office use only)</td>
        	<td colspan="4"><input type="text" name="pay_no" value="<?= @$info->pay_no?>"/></td>
        	</tr>
        <tr class="even">
            <td>付款方式 Methods of payment</td>
        	<td colspan="4">
			<input type="radio" name="pay_type" value="1" <?= (@$info->pay_type==1)?'checked':''?> />
			美金支票/美金汇票 Bank cheque/bank draft<br />
			<input type="radio" name="pay_type" value="2" <?= (@$info->pay_type==2)?'checked':''?> />
        	邮政汇款 Money order<br />
			<input type="radio" name="pay_type" value="3" <?= (@$info->pay_type==3)?'checked':''?> />
        	现金 Cash</td>
        	</tr>
		<tr class="odd">
            <td>&nbsp;</td>
        	<td>&nbsp;</td>
        	<td>&nbsp;</td>
        	<td>&nbsp;</td>
			<td>&nbsp;</td>
        </tr>
        <tr class="even">
            <td>&nbsp;</td>
        	<td>&nbsp;</td>
        	<td>&nbsp;</td>
        	<td>&nbsp;</td>
			<td>&nbsp;</td>
        </tr>
    </tbody>
	</table>
<!-- table end -->
</form>

			</div>
		</div>
		
		<?=$this->load->view('include_sidebar',array('id'=>$id,'forms'=>$forms))?>
	</div>

<script type="text/javascript">
$().ready(function() {
  $("#form").validate({
    rules: {
		surname:"required",
		firstname:"required",
		sex:"required",
		birth:"required",
		passport_no:"required",
		passport_expiry:"required",
		passport_country:"required",
		passport_expiry:"required",
		marital_status:"required"
    }
  });
  
	$.datepicker.setDefaults(
		{
		dateFormat: 'dd-mm-yy',
		changeMonth: true,
		changeYear: true,
		showOn: "both",
		buttonImage: "images/calendar.gif",
		buttonImageOnly: true
		}
	);
	$("#birth").datepicker();
	$("#passport_expiry").datepicker();
	$("#visit_from").datepicker();
	$("#visit_to").datepicker();
	$("#spouse_birth").datepicker();
	$("#spouse_passport_expiry").datepicker();
	$("#child1_birth").datepicker();
	$("#child1_expiry").datepicker();
	$("#child2_birth").datepicker();
	$("#child2_expiry").datepicker();
	$("#sign_date1").datepicker();
	$("#sign_date2").datepicker();
	$("#sign_date3").datepicker();
	$("#sign_date4").datepicker();
	$("#assist_sign_date").datepicker();
	
	
	$("#email").autoMail();
	$("#postal_email").autoMail();
	$("#assist_mail").autoMail();
	
	$("#printInfo").click(function(o) {
		var prints = [
			{rel_id: <?=$cateid?>, rec_id: <?=$id?>}
		]  ;
		
		var jdata = JSON.stringify(prints);
		//alert(jdata);
		$.post("<?=site_url('proxy/does/'.str_replace('==','',base64_encode('http://'.$_SERVER['SERVER_NAME'].':9090/javaprduct/servlet/test')))?>",{clients:jdata},function(msg){alert(msg)});
	});
	
	$("#printInfo").ajaxError(function(event,request, settings){
		//$(this).append("<li>出错页面:" + settings.url + "</li>");
		alert("无法访问"+ settings.url );
	}); 
 
});
</script>

<?=$this->load->view('include_footer',null)?>